-- GENERATED SPELL FOR [Jadespine Basilisk] --


function spell0_4863(pUnit, Event) --@Crystalline Slumber,n/a--
pUnit:FullCastSpellOnTarget(3636,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4863', 17000, 1)
end

function spell1_4863(pUnit, Event) --@Reflection,Self--
pUnit:FullCastSpellOnTarget(9906,pUnit)
pUnit:RegisterEvent('Sorts_4863', 5336, 1)
end

function Sorts_4863(pUnit, Event)
local choix_sorts_4863 = math.random(0, 1)
if choix_sorts_4863 == 0 then
pUnit:RegisterEvent('spell0_4863', 1, 1)
end
if choix_sorts_4863 == 1 then
pUnit:RegisterEvent('spell1_4863', 1, 1)
end
end

function mob4863_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4863', math.random(1500, 3000), 1)
end

function mob4863_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4863_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4863_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4863, 1, 'mob4863_Action')
RegisterUnitEvent(4863, 2, 'mob4863_Leave')
RegisterUnitEvent(4863, 3, 'mob4863_Kill')
RegisterUnitEvent(4863, 4, 'mob4863_Die')
